home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _126D60CB25C8403F9166F82CD8613ECE < prev    next >
Encoding:
Text File  |  2006-08-04  |  1.0 KB  |  37 lines

  1. from PSPApp import *
  2.  
  3. def ScriptProperties():
  4.     return {
  5.         'Author': u'Corel Corporation',
  6.         'Copyright': u'Copyright (c) 2003-2004 Corel Corporation  All rights reserved.',
  7.         'Description': u'',
  8.         'Host': u'Paint Shop Pro',
  9.         'Host Version': u'8.10'
  10.         }
  11.  
  12. def Preset_RedEyeRemoval():
  13.     return {
  14.         'DefaultSettings': {
  15.             'Blur': 2, 
  16.             'CenterGlint': App.Constants.Boolean.true, 
  17.             'Color': 3, 
  18.             'Feather': 3, 
  19.             'GlintLightness': 60, 
  20.             'GlintSize': 20, 
  21.             'Hue': App.Constants.EyeColor.Gray, 
  22.             'IrisSize': 3, 
  23.             'Method': App.Constants.RedEyeMethod.AutoHumanEye, 
  24.             'PupilLightness': 20, 
  25.             'Refine': 100, 
  26.             'UpdateRegion': App.Constants.Boolean.true, 
  27.             'Width': 0, 
  28.             'Height': 0, 
  29.             'Angle': 0
  30.             }
  31.         }
  32.  
  33. def Do(Environment):
  34.     # Red-eye Removal
  35.     App.Do( Environment, 'RedEyeRemoval',         Preset_RedEyeRemoval())
  36.  
  37.